package main

import (
	"context"

	"github.com/cloudwego/hertz/pkg/app"
	"github.com/cloudwego/hertz/pkg/app/server"
	"github.com/cloudwego/hertz/pkg/protocol/consts"
)

func main() {
	h := server.Default(
		server.WithHostPorts("0.0.0.0:8080"),
	)

	h.GET("/sayHello", func(ctx context.Context, c *app.RequestContext) {
		c.String(consts.StatusOK, "Say Hello By Docker.")
	})

	h.Spin()
}